package com.yyx.up.common.bean;

import java.io.Closeable;
import java.io.IOException;
import java.util.List;

/**
 * Description:
 * @Author: yyx
 * @Create: 2023/4/9 14:28
 * @Version: 8
 */
public interface DataIn extends Closeable {
    public void setPath(String path,String path2);

    public Object read() throws IOException;
    public <T extends Data>List<T> read(Class<T> clazz) throws IOException;// 泛型,限制传入数据的类型
    public <T extends Data>List<T> read2(Class<T> clazz) throws IOException;
}
